package com.cms.testbutterknife

import android.annotation.SuppressLint
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.TextView
import com.cms.bind_annotation.BindClick
import com.cms.bind_annotation.BindView
import com.cms.bind_api.ButterKnife
import org.w3c.dom.Text
@SuppressLint("NonConstantResourceId")
class MainActivity : AppCompatActivity() {

    @BindView(value = R.id.tv)
     var tv: TextView? = null
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        ButterKnife.bind(this)
        tv?.text = "数据更改完成"



    }
    @BindClick(R.id.tv)
    fun start(){
        startActivity(Intent(this,MainActivity2::class.java))
    }
}